package com.qingcheng.controller;

import com.qingcheng.entity.Result;
import com.qingcheng.service.LogisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logistic")
public class LogisticController {

    @Autowired
    private LogisticService logisticService;

    @GetMapping("/findAll")
    public Result findAll(){
        return new Result(200,"查询成功",logisticService.findAll());
    }
}
